package com.lzh.persevere.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzh.persevere.model.entity.UserRole;


/**
 * 用户和角色关联表(SysUserRole)表数据库访问层
 *
 * @author luzhiheng
 * @since 2023-12-28 16:14:28
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 通过用户id删除
     *
     * @param userId 用户id
     */
    void deleteByUserId(Long userId);

    /**
     * 通过角色id删除
     *
     * @param roleId 角色id
     */
    void deleteByRoleId(Long roleId);
}

